package com.commerceE.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;

import com.commerceE.common.exception.ServiceException;
import com.commerceE.domain.Category;
import com.commerceE.service.CategoryService;

@Transactional(readOnly = false)
public class CategoryServiceImpl implements CategoryService {
	
	@Autowired
//	private CategoryDao categoryDao;

	
	/* (non-Javadoc)
	 * @see com.commerceE.service.CategoryService#getAllListOfCategory()
	 */
	public List<Category> getAllListOfCategory() throws ServiceException{
//		try {
//			return categoryDao.getAllListOfCategory();
//		} catch (DaoException e) {
//			throw new ServiceException(e.getExceptionCode(),e.getExceptionMessage());
//		}
		return null;
	}
	
	/* (non-Javadoc)
	 * @see com.commerceE.service.CategoryService#insertCategory(com.commerceE.domain.Category)
	 */
	@Transactional(readOnly = false, rollbackFor = Exception.class)
	public void insertCategory(Category category) throws ServiceException{
//		try {
//			categoryDao.insertCategory(category);
//		} catch (DaoException e) {
//			throw new ServiceException(e.getExceptionCode(),e.getExceptionMessage());
//		}
		
	}



}
